package com.ssy.lingxi.report.entity.report;

import javax.persistence.*;
import java.io.Serializable;

/**
 * App待办通知
 * @author 伍将
 * @date 2021/1/18
 * @version 2.0.0
 */
@Entity
@Table(schema = "public", name = "rep_app_backlog_notice",
        indexes = {
                @Index(name = "rep_app_backlog_notice_member_id_idx", columnList = "memberId"),
                @Index(name = "rep_app_backlog_notice_role_id_idx", columnList = "roleId"),
                @Index(name = "rep_app_backlog_notice_data_source_idx", columnList = "dataSource"),
                @Index(name = "rep_app_backlog_notice_operate_type_idx", columnList = "operateType"),
                @Index(name = "rep_app_backlog_notice_data_id_idx", columnList = "dataId")})
public class AppBacklogNoticeDO implements Serializable {

    private static final long serialVersionUID = -6191580938428429685L;

    /**
     * id
     */
    @Id
    @GeneratedValue(strategy = GenerationType.SEQUENCE, generator = "app_backlog_notice_seq")
    @SequenceGenerator(sequenceName = "rep_app_backlog_notice_seq", name = "app_backlog_notice_seq", allocationSize = 1)
    private Long id;

    /**
     * 会员id
     */
    @Column(columnDefinition = "int8")
    private Long memberId;

    /**
     * 会员角色id
     */
    @Column(columnDefinition = "int8")
    private Long roleId;

    /**
     * 数据源
     * 详细参考OperateDataSourceEnum
     */
    @Column(columnDefinition = "int2")
    private Integer dataSource;

    /**
     * 待办事项（操作类型）
     * 详细参考 MemberOperateTypeEnum：会员操作枚举
     *        CommodityInquiryOperateTypeEnum：商品询价
     *        InquiryQuotationOperateTypeEnum: 询价报表
     *        ConfirmInquiryQuotationOperateTypeEnum：确认询价报价
     *        DemandPublishOperateTypeEnum：需求发布
     *        DemandQuotationOperateTypeEnum：需求报价
     *        ConfirmDemandQuotationOperateTypeEnum：确认需求报价
     *        SaleOrderOperateTypeEnum：销售订单
     *        PurchaseOrderOperateTypeEnum：采购订单
     *        CommodityOperateTypeEnum：商品中心
     *        AccountOperateTypeEnum：资金账户
     *        LogisticsOperateTypeEnum：物流中心
     *        SettleAccountPlatformOperateTypeEnum：平台结算
     *        SettleAccountPlatformScoreOperateTypeEnum：平台积分结算
     *        SettleAccountPayableOperateTypeEnum：应付款结算
     *        SettleAccountReceivableOperateTypeEnum：应收款结算
     *        EnhanceProcessOperateTypeEnum： 确认生产通知单
     *        EnhanceSupplierOperateTypeEnum：指派生产通知单
     *        ShopOperateTypeEnum: 店铺
     */
    @Column(columnDefinition = "int2")
    private Integer operateType;

    /**
     * 数据标识id
     */
    @Column(columnDefinition = "int8")
    private Long dataId;

    /**
     * 标题
     */
    @Column(columnDefinition = "varchar(100)")
    private String title;

    /**
     * 创建时间
     */
    @Column(columnDefinition = "int8")
    private Long createTime;

    public Long getId() {
        return id;
    }

    public void setId(Long id) {
        this.id = id;
    }

    public Long getMemberId() {
        return memberId;
    }

    public void setMemberId(Long memberId) {
        this.memberId = memberId;
    }

    public Long getRoleId() {
        return roleId;
    }

    public void setRoleId(Long roleId) {
        this.roleId = roleId;
    }

    public Integer getDataSource() {
        return dataSource;
    }

    public void setDataSource(Integer dataSource) {
        this.dataSource = dataSource;
    }

    public Integer getOperateType() {
        return operateType;
    }

    public void setOperateType(Integer operateType) {
        this.operateType = operateType;
    }

    public Long getDataId() {
        return dataId;
    }

    public void setDataId(Long dataId) {
        this.dataId = dataId;
    }

    public String getTitle() {
        return title;
    }

    public void setTitle(String title) {
        this.title = title;
    }

    public Long getCreateTime() {
        return createTime;
    }

    public void setCreateTime(Long createTime) {
        this.createTime = createTime;
    }
}
